package com.villaday.idf.activity;

import android.content.Intent;

import androidx.appcompat.widget.Toolbar;
import android.view.View;
import android.widget.TextView;

import com.villaday.idf.R;
import com.villaday.idf.base.BaseActivity;
import com.villaday.idf.util.PhoneUtil;
import com.villaday.idf.util.ToolBarUtil;

import butterknife.BindView;
import butterknife.OnClick;

/*
 * 建议与反馈
 *
 * */
public class AboutVilladayActivity extends BaseActivity {

    @BindView(R.id.toolbar_text)
    Toolbar toolbarText;
    @BindView(R.id.tv_version)
    TextView tv_version;


    @Override
    protected int getViewResId() {
        return R.layout.activity_about_villaday;
    }

    @Override
    protected void init() {
        ToolBarUtil.initToolBar(toolbarText, "关于爱订房", new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                onBackPressed();
            }
        });
        tv_version.setText("V" + PhoneUtil.getAppVersion(this));
    }



    @OnClick(R.id.tv_Agreement)
    public void onViewClicked() {

        Intent intent = new Intent(this, H5Activity.class);
        intent.putExtra("title",  "");
        intent.putExtra("url", "https://res.villaday.com/static/pages/1907/19/190717-19.html");
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

        startActivity(intent);
    }
}
